package com.tensquare.article.pojo;

import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: WangYaWei
 * @description:
 * @create: 2019-08-15 18:00
 **/
public class Comment implements Serializable{

    @Id
    private String id;
    private String articleid;//文章id
    private String content;//评论内容
    private String userid;//评论人id
    private String parentid;//评论id 如果为0标识文章的顶级评论
    private Date publishdata;//评论日期

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getArticleid() {
        return articleid;
    }

    public void setArticleid(String articleid) {
        this.articleid = articleid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getParentid() {
        return parentid;
    }

    public void setParentid(String parentid) {
        this.parentid = parentid;
    }

    public Date getPublishdata() {
        return publishdata;
    }

    public void setPublishdata(Date publishdata) {
        this.publishdata = publishdata;
    }
}
